﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BingImageManager
{
    /**
    * 
        XDocument loadedData = XDocument.Load("response.xml");
        var data = from query in loadedData.Descendants("image")
        select new Image
        {
            url = (string)query.Element("url"),
            urlBase = (string)query.Element("urlBase"),
            //hotspots =( from queryHost in loadedData.Descendants("hotspot")
            //           select new Hotspot
            //           {
            //               desc =(string) queryHost.Element("desc")
                           
            //}).ToList<Hotspot>()
        };
     **/
    

    public class BingImage
    {
        public class Hotspot
    {
        public string desc { get; set; }
        public string link { get; set; }
        public string query { get; set; }
        public string LocX { get; set; }
        public string LocY { get; set; }
    }
        public string startdate { get; set; }
        public string fullstartdate { get; set; }
        public string enddate { get; set; }
        public string url { get; set; }
        public string urlBase { get; set; }
        public string copyright { get; set; }
        public string copyrightlink { get; set; }
        public string drk { get; set; }
        public string top { get; set; }
        public string bot { get; set; }
        public List<Hotspot> hotspots { get; set; }
        public string messages { get; set; }
    }

}
